import request from "@/utils/request";

// 查询项目文件夹列表
export function listProjectFolder(query) {
  return request({
    url: "/production/projectFolder/list",
    method: "get",
    params: query,
  });
}

// 查询项目文件夹所有列表
export function listAllProjectFolder(query) {
  return request({
    url: "/production/projectFolder/listAll",
    method: "get",
    params: query,
  });
}

// 查询项目文件夹详细
export function getProjectFolder(id) {
  return request({
    url: "/production/projectFolder/getInfo/" + id,
    method: "get",
  });
}

// 新增项目文件夹
export function addProjectFolder(data) {
  return request({
    url: "/production/projectFolder/add",
    method: "post",
    data: data,
  });
}

// 修改项目文件夹
export function updateProjectFolder(data) {
  return request({
    url: "/production/projectFolder/edit",
    method: "post",
    data: data,
  });
}

// 删除项目文件夹
export function delProjectFolder(id) {
  return request({
    url: "/production/projectFolder/remove/" + id,
    method: "get",
  });
}
